finite — Test for finite values


\begin{rail}
Finite : 'finite' '(' ( Scalar \vert Matrix ) ')' ;
\end{rail}
This function tests the argument for values that are not finite. If the argument is scalar, it returns 0 if the argument is finite (i.e. not Inf or NaN) and a 1 if it is either Inf or NaN. If the argument is a matrix, then finite returns a matrix of the same dimensions as the argument, with the test performed on each element. $\Longrightarrow$ This is not an built-in function. This function is normally loaded on start-up from the finite.r file in the standard rlib directory. Use of the -r option, incorrectly setting the RLAB_LIB_DIR environmental variable, or modifying finite.r may make this function unavailable.

Subsections